import Axios from 'axios';

const axiosRequest = Axios.create({
  baseURL: '',
  timeout: 60000,
});

axiosRequest.defaults.retry = 1;
axiosRequest.defaults.retryDelay = 1000;

axiosRequest.interceptors.request.use(config => {
  return config;
}, error => {
  Promise.reject(error);
});

axiosRequest.interceptors.response.use(response => {
  return response;
}, error => {

  return Promise.reject(error);
});

export default axiosRequest;
